cmake_minimum_required(VERSION 2.8.3)
project(obstacle_detection)
SET(CMAKE_CXX_FLAGS "-std=c++11 -O2 -g -Wall ${CMAKE_CXX_FLAGS}")

find_package(catkin REQUIRED COMPONENTS
  cv_bridge
  jsk_recognition_msgs
  #pcl_ros
  roscpp
  sensor_msgs
  std_msgs
  lidarmarkers_msg
)

find_package(PCL 1.7 REQUIRED)
find_package(OpenCV 3.2 REQUIRED)

catkin_package()


include_directories(
include
  ${catkin_INCLUDE_DIRS}
  ${openCV_INCLUDE_DIRS}
)

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

include_directories(${OpenCV_INCLUDE_DIRS})
link_directories(${OpenCV_LIBRARY_DIRS})
add_definitions(${OpenCV_DEFINITIONS})

add_executable(${PROJECT_NAME}_node src/detection_node.cc src/detection_core.cc src/box.cc)
target_link_libraries(${PROJECT_NAME}_node ${PCL_LIBRARIES} ${catkin_LIBRARIES} ${OpenCV_LIBS})






